package me.weijing.common.util;

import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.XMPPConnection;

public class XmppConnectionUtil {
    private static XMPPConnection mConnection;

    public static XMPPConnection getConnection(ConnectionConfiguration config) {
        if (mConnection == null) {
            mConnection = new XMPPConnection(config);
        }
        return mConnection;

    }
}
